/*
 * term_vt100.h
 *
 *  Created on: 16-07-2013
 *      Author: MCzepczyński
 */

#ifndef TERM_VT100_H_
#define TERM_VT100_H_

/******************************************************************************************
 *	Makrodefinicje															 			 *
 *****************************************************************************************/

// Atrybuty
#define RESET		0
#define BOLD 		1
#define DIM			2
#define UNDERLINE 	3
#define BLINK		4
#define REVERSE		7
#define HIDDEN		8

// Kolor czcionki i tla
#define BLACK 		0
#define RED			1
#define GREEN		2
#define YELLOW		3
#define BLUE		4
#define MAGENTA		5
#define CYAN		6
#define	WHITE		7

#define NONE		0	// bez atrybutów

/******************************************************************************************
 *	Deklaracje dołączanych plików nagłówkowych i bibliotek								 *
 *****************************************************************************************/
#include <avr/io.h>
#include <avr/pgmspace.h>

#include "uart.h"


/******************************************************************************************
 *	Deklaracje funkcji								 									 *
 *****************************************************************************************/
void term_cursor_hide(uint8_t hide);
void term_go_to(uint8_t x, uint8_t y);
void term_bg_color(uint8_t bg_color);
void term_font_color( uint8_t font_color );
void term_set_attributes(uint8_t attribute, uint8_t font_color, uint8_t bg_color);
void term_draw_line(char sign, uint8_t cnt, uint8_t font_color, uint8_t bg_color);
void term_clear(void);

#endif /* TERM_VT100_H_ */
